package com.ytsky.quotesystem.service.impl;

import com.ytsky.quotesystem.dao.HitsMapper;
import com.ytsky.quotesystem.entity.Hits;
import com.ytsky.quotesystem.service.HitsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HitsServiceImpl implements HitsService{

    @Autowired
    private HitsMapper hitsMapper;

    @Override
    public boolean append(Hits hits) {
        return hitsMapper.insert(hits) >0;
    }

    @Override
    public boolean remove(int id) {
        return hitsMapper.remove(id)>0;
    }
}
